package com.tsingtao.springboot2.service.impl;

import com.tsingtao.springboot2.dto.Department;
import com.tsingtao.springboot2.mapper.DepartmentMapper;
import com.tsingtao.springboot2.service.DepartmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DepartmentServiceImpl implements DepartmentService {

    @Autowired
    private DepartmentMapper departmentMapper;

    @Override
    public List<Department> selectDepartmentListWithEmployee() {
        return departmentMapper.selectDepartmentListWithEmployee();
    }

}
